package yy.yyds.org.service;

import yy.yyds.basic.query.util.QueryResult;
import yy.yyds.org.domain.Department;
import yy.yyds.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    /*添加*/
    void add(Department department);
    /*删除*/
    void delete (Long id);
    /*修改*/
    void update(Department department);
    /*查询一条*/
    Department loadOne(Long id);
    /*查询所有*/
    List<Department> loadAll();

    /*分页查询的方法*/
    QueryResult<Department> querypage(DepartmentQuery departmentQuery);

    void batchDelete(List<Long> ids);

    List<Department> getTree();
}
